package fechas.fechas_Joda;
//s'ha de referenciar la llibreria
import org.joda.time.DateTime;
import org.joda.time.Days;

public class Main {

	public static void main(String[] args) {

		DateTime dt1 = new DateTime(2015,1,20,12,0);
		DateTime dt2 = new DateTime(2015,1,1,12,0);
		
		System.out.println(dt1);
		System.out.println(dt2);
		
		System.out.println(Days.daysBetween(dt1, dt2).getDays());
	}

}
